package com.ruoyi.client.fxiaoke.beans.args;

import java.util.ArrayList;
import java.util.List;

import com.google.common.base.MoreObjects;

import lombok.Data;

/**
 * 删除CRM数据参数
 * @author 官宇
 * @date 2020-05-18
 */
@Data
public class CrmDeleteArg extends BaseArg {
	private static final long serialVersionUID = -8483693972030281760L;

	private String currentOpenUserId;

	private Datas data = new Datas();

	/**
	 * 接口版本
	 */
	private String defineType = "v2";

	@Data
	public static class Datas{
		/**
		 * 对象数据
		 */
		private List<String> idList = new ArrayList<>();

		/**
		 * 接口对象
		 */
		private String dataObjectApiName = "";

	}

	public CrmDeleteArg(String currentOpenUserId, String apiName, String dataId) {
		this.currentOpenUserId = currentOpenUserId;
		this.data.setDataObjectApiName(apiName);
		this.data.getIdList().add(dataId);
	}

	public CrmDeleteArg() {
	}
}
